package com.erlinyou.im.service.motion.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.erlinyou.base.service.BaseServiceImpl;
import com.erlinyou.im.dao.repository.motion.UserMotionRepository;
import com.erlinyou.im.model.motion.UserMotion;
import com.erlinyou.im.model.motion.UserMotionKey;
import com.erlinyou.im.service.motion.UserMotionService;
@Service
public class UserMotionServiceImpl extends BaseServiceImpl<UserMotion, UserMotionKey> implements UserMotionService {

	@Autowired
	private UserMotionRepository UserMotionRepository;
	
	@Override
	public List<Map<String, Object>> getFriendStepNum(String ids, Long createDate) {
		return UserMotionRepository.getFriendStepNum(ids,createDate);
	}

	@Override
	public UserMotion findByUseridAndCreateDate(Long userId, long dateTime) {
		return UserMotionRepository.findByUseridAndCreateDate(userId,dateTime);
	}

	@Override
	public List<Map<String, Object>> getUserStepNum(int userid, long startTime) {
		return UserMotionRepository.getUserStepNum( userid,  startTime);
	}

}
